
export interface InitOptions {
    api: string;

    previewUrl: string;
}

export function getInitOptions (): InitOptions {
  const item = localStorage.getItem('init_options')
  return item && JSON.parse(item)
}

export function setInitOptions (options: InitOptions) {
  localStorage.setItem('init_options', JSON.stringify(options))
}
